package com.tianji.coupon.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tianji.coupon.pojo.ExchangeCode;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 兑换码 Mapper 接口
 * </p>
 *
 * @author 陈佳
 * @since 2024-08-29
 */
public interface ExchangeCodeMapper extends BaseMapper<ExchangeCode> {


    @Delete("DELETE FROM exchange_code WHERE exchange_target_id = #{id}")
    void deletedByCouponId(@Param("id") Long id);
}
